<?php
//var_dump();
class UserGoldCoinTask extends BaseModel
{
	public $res;
	public $expire;
	public function getSource()
    {
        return "f_user_gold_coin_task";
    }

	public function initialize()
	{
		 parent::initialize();
		 $this->res['res']=false;
		 $this->expire=60*60*20;
	}

	public function get_list(){
	    $data = $this->find([
	        'order' => 'sort asc'
        ])->toarray();
	    return $data;
    }

    public function get_first($id){
        $data = $this->findFirstById($id);
        return $data;
    }
	}
